import request from '@/utils/request'
import { openapi_url } from '@/utils/url'

export function ofProj(query) {
  return request({
    url: openapi_url('/article/list'),
    method: 'get',
    params: query
  })
}

export function fetch(query) {
  return request({
    url: openapi_url('/article/get'),
    method: 'get',
    params: query
  })
}

export function update(query) {
  return request({
    url: openapi_url('/article/update'),
    method: 'post',
    params: query
  })
}

export function create(query) {
  return request({
    url: openapi_url('/article/create'),
    method: 'post',
    params: query
  })
}

export function deleteArticle(query) {
  return request({
    url: openapi_url('/article/delete'),
    method: 'post',
    params: query
  })
}
